<template>
    <p>movie{{id}}</p>
    <button @click="goBack">goback</button>
</template>
<script setup>
import { useRouter } from 'vue-router';
const props = defineProps({
    id:String
});
const router = useRouter();
const goBack = () => {
    router.go(-1);
};
</script>